/*[类型+方括号]表示*/
type IArr1 = number[];

/*泛型表示*/
type IArr2 = Array<string | number | Record<string, number>>

/*元祖表示*/
type IArr3 = [number, number, string, string];

/*接口表示*/
interface IArr4 {
    [key: number]: any;
}


const arr1: IArr1 = [1, 2, 3, 4, 5, 6];
const arr2: IArr2 = [1, 2, '3', '4', {a: 1}];
const arr3: IArr3 = [1, 2, '3', '4'];
const arr4: IArr4 = ['string', () => null, {}, []];


